package com.hu.zhcc.shiro.service.lgx;

import com.hu.zhcc.shiro.dao.lgx.TOrderMapper;
import com.hu.zhcc.shiro.entity.lgx.TOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TOrderServiceImpl implements TOrderService {
    @Autowired
    TOrderMapper tOrderMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tOrderMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TOrder record) {
        return tOrderMapper.insertSelective(record);
    }

    @Override
    public int insertSelective(TOrder record) {
        return tOrderMapper.insertSelective(record);
    }

    @Override
    public TOrder selectByPrimaryKey(Integer id) {
        return tOrderMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TOrder record) {
        return tOrderMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TOrder record) {
        return tOrderMapper.updateByPrimaryKey(record);
    }

    @Override
    public TOrder selectBy(Integer id) {
        return tOrderMapper.selectBy(id);
    }

    @Override
    public List<TOrder> selectByList() {
        return tOrderMapper.selectByList();
    }
}
